<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>使用构造函数</title>
	</head>

	<body>
		<div id="introu"></div>

		<script type="text/javascript">
			function Person(name, age, job, address) {
				this.name = name;
				this.age = age;
				this.job = job;
				this.address = address;
				this.intro = intro;

			}

			function intro() {

				var str = "姓名：" + this.name + "<br/>年龄：" + this.age + "<br/>工作：" + this.job + "<br/>地址：" + this.address;

				document.getElementById("introu").innerHTML = str;

			}

			var person = new Person("朗晓明", 38, "中国内地男演员、歌手", "中国北京海淀区");

			person.intro();
		</script>
	</body>

</html>